import { RouteRecordRaw } from "vue-router";

export default <RouteRecordRaw[]>[
    {
        path: '/component',
        component: () => import('@/layouts/AdminLayout.vue'),
        redirect: 'NotFound',
        children: [
            {
                path: 'basic',
                name: 'BasicComponent',
                component: () => import(/* webpackChunkName: "router" */'@/views/demo/component/Basic.vue'),
                meta: {
                    title: '基础组件'
                }
            },
            {
                path: 'form',
                name: 'FormComponent',
                component: () => import(/* webpackChunkName: "router" */'@/views/demo/component/Form.vue'),
                meta: {
                    title: '表单组件'
                }
            },
        ]
    },

    {
        path: '/detail',
        component: () => import('@/layouts/AdminLayout.vue'),
        redirect: 'NotFound',
        children: [
            {
                path: 'basic',
                name: 'BasicDetail',
                component: () => import(/* webpackChunkName: "router" */'@/views/demo/detail/Base.vue'),
                meta: {
                    title: '基础详细页'
                }
            },
            {
                path: 'advance',
                name: 'AdvancedDetail',
                component: () => import(/* webpackChunkName: "router" */'@/views/demo/detail/Advance.vue'),
                meta: {
                    title: '高级详细页'
                }
            },
        ]
    },

    {
        path: '/form',
        component: () => import('@/layouts/AdminLayout.vue'),
        redirect: 'NotFound',
        children: [
            {
                path: 'basic',
                name: 'BasicForm',
                component: () => import(/* webpackChunkName: "router" */'@/views/demo/form/Base.vue'),
                meta: {
                    title: '基础表单'
                }
            },
            {
                path: 'step',
                name: 'StepForm',
                component: () => import(/* webpackChunkName: "router" */'@/views/demo/form/Step.vue'),
                meta: {
                    title: '分步表单'
                }
            },
            {
                path: 'advance',
                name: 'AdvanceForm',
                component: () => import(/* webpackChunkName: "router" */'@/views/demo/form/Advance.vue'),
                meta: {
                    title: '高级表单'
                }
            },
        ]
    },
    {
        path: '/result',
        component: () => import('@/layouts/AdminLayout.vue'),
        redirect: 'NotFound',
        children: [
            {
                path: 'success',
                name: 'SuccessResult',
                component: () => import(/* webpackChunkName: "router" */'@/views/demo/result/Success.vue'),
                meta: {
                    title: '成功页'
                }
            },
            {
                path: 'failed',
                name: 'FailedResult',
                component: () => import(/* webpackChunkName: "router" */'@/views/demo/result/Failed.vue'),
                meta: {
                    title: '失败页'
                }
            },
        ]
    },
    {
        path: '/order',
        component: () => import('@/layouts/AdminLayout.vue'),
        redirect: 'NotFound',
        children: [
            {
                path: 'jd',
                name: 'JdOrder',
                component: () => import(/* webpackChunkName: "router" */'@/views/demo/order/Jd.vue'),
                meta: {
                    title: '京东订单'
                }
            },
            {
                path: 'tmall',
                name: 'TmallOrder',
                component: () => import(/* webpackChunkName: "router" */'@/views/demo/order/Jd.vue'),
                meta: {
                    title: '京东订单'
                }
            },
        ]
    },
    {
        path: '/table',
        component: () => import('@/layouts/AdminLayout.vue'),
        redirect: 'NotFound',
        children: [
            {
                path: 'query',
                name: 'QueryTable',
                component: () => import(/* webpackChunkName: "router" */'@/views/demo/table/Query.vue'),
                meta: {
                    title: '查询表格'
                }
            },
            {
                path: 'standard',
                name: 'StandardTable',
                component: () => import(/* webpackChunkName: "router" */'@/views/demo/table/Standard.vue'),
                meta: {
                    title: '标准列表'
                }
            },
            {
                path: 'card',
                name: 'CardTable',
                component: () => import(/* webpackChunkName: "router" */'@/views/demo/table/Card.vue'),
                meta: {
                    title: '卡片列表'
                }
            },
            {
                path: 'search',
                name: 'SearchTable',
                component: () => import(/* webpackChunkName: "router" */'@/views/demo/table/Search.vue'),
                meta: {
                    title: '搜索列表'
                }
            },
        ]
    },
    {
        path: '/profile',
        component: () => import('@/layouts/AdminLayout.vue'),
        redirect: 'NotFound',
        children: [
            {
                path: 'setting',
                name: 'SettingProfile',
                component: () => import(/* webpackChunkName: "router" */'@/views/demo/profile/Setting.vue'),
                meta: {
                    title: '个人设置'
                }
            },
            {
                path: 'center',
                name: 'CenterProfile',
                component: () => import(/* webpackChunkName: "router" */'@/views/demo/profile/Center.vue'),
                meta: {
                    title: '个人中心'
                }
            },
        ]
    },


]
